﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using Wyse.Server.Logging;

namespace Wyse.Server
{
    /// <summary>
    /// Entry point class
    /// </summary>
    static class EntryPoint
    {
        /// <summary>
        /// Entry point
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            // let the thread identify itself in the log
            Thread.CurrentThread.Name = "Main";

            ServerRoot root = new ServerRoot(args);

            try
            {
                root.Start();
            }
            finally
            {
                root.Shutdown();
            }
        }
    }
}
